package com.zxq.uart.fegin;

import com.zxq.uart.fegin.client.ShiLuWenGanFeignClient;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ShiLuWenGanFeignFallbackFactory implements FallbackFactory<ShiLuWenGanFeignClient> {

    @Override
    public ShiLuWenGanFeignClient create(Throwable cause) {
        System.out.println(cause.toString());
        return null;
    }
}
